class CreateBaseNotices < ActiveRecord::Migration[5.1]
  def change
    create_table :base_notices do |t|
      t.integer :from, :to
      t.integer :status, default: 0
      t.integer :notice_type, default: 0
      t.string :title, :content

      t.timestamps
    end
    add_index :base_notices, :from
    add_index :base_notices, :to
    add_index :base_notices, :status
    add_index :base_notices, :notice_type
  end
end
